
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>        
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
		<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">       
		<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
		<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
		<title>Consultar Ventas Diarias</title>
    </head>
    <body class="container">
        <%@include file="../../../opciones.jsp"%>      
        <h1>Consultar Ventas Diarias</h1>
        <form class="form-horizontal" METHOD = "GET" ACTION = "<c:url value="/BuscarVentas"/>" >
            <div class="form-group">
                <label for="fecha_venta" class="col-md-2 control-label">Fecha de Venta</label>
                <div class="col-md-10">
                    <input id="fecha_venta" class="form-control" TYPE="date" NAME="FECHA_INI" required/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-offset-2 col-md-10">
                    <button type="submit" class="btn button-default">Buscar</button>
                </div>
            </div>	
        </form>        
        <h2>${Mensaje}</h2>
        <script>
            $(document).ready(function(){
                var today = new Date();
                var dd = today.getDate();
                var mm = today.getMonth()+1; //January is 0!
                var yyyy = today.getFullYear();
                if(dd<10){dd='0'+dd} if(mm<10){mm='0'+mm} 
                today = yyyy+'-'+mm+'-'+dd;
                $('#fecha_venta').val(today);
                $('#fecha_venta').attr({"max" : today});
               });
        </script>
    </body>
</html>